<?php   
	if(isset($_REQUEST['area']) && isset($_REQUEST['action']))
	{
		$targetpage = $_REQUEST['area'].'/'.$_REQUEST['action'].'.php';
		
		$menu = $_REQUEST['area'].'/'.'menu.php';
		//$submenu = $_REQUEST['area'].'/'.'submenu.php';	
	}
	elseif(!isset($_REQUEST['area']) && isset($_REQUEST['action']))
	{
		$targetpage = $_REQUEST['action'].'.php';
		$menu ='menu.php';	
		//$submenu = $_REQUEST['action'].'/'.'submenu.php';		
	}
	elseif(isset($_REQUEST['area']) && !isset($_REQUEST['action']))
	{
		$targetpage = $_REQUEST['area'].'/index.php';
		$menu = $_REQUEST['area'].'/'.'menu.php';
		//$submenu = $_REQUEST['action'].'/'.'submenu.php';			
	}
	else
	{
		$targetpage='home.php';
  	    $menu = 'menu.php';
		//$submenu = 'home/submenu.php';
	}
?>